<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath() + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath %>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户登录</title>
<link rel="stylesheet" type="text/css" href="layui/css/layui.css"> 
<link rel="stylesheet" type="text/css" href="css/login.css">  
</head>  
<body>  
<div class="layui-container">
	<div class ="layui-row">
		<div class="layui-col-md4 layui-col-md-offset4">
		<form action="user/login" method="post" class="layui-form"> 
			<h1>用户登录</h1>
			<h4>${error}</h4>
			<h4>${msg}</h4>
			<div class="layui-form-item">
				<label class="layui-form-label">账号</label>
				<div class="layui-input-inline">
					 <input type="text" name="username"  placeholder="请输入用户名" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">密码</label>
				<div class="layui-input-inline">
					 <input type="password"  placeholder="请输入密码"  name="password" class="layui-input">
				</div>
			</div>
			
			<div class="layui-form-item">
				<label class="layui-form-label"></label>
				<div class="layui-input-inline">
					<input type="submit" value="登录" class="layui-btn layui-btn-primary layui-border-blue">
					<a href="user/reg.jsp" class="layui-btn layui-btn-primary layui-border-blue">注册</a>
				</div>
			</div>
		</form>
		</div>
	</div>
</div>                  
</body>
</html>